package cn.edu.neusoft.zengweidong707.neufood.iface;


import cn.edu.neusoft.zengweidong707.neufood.listener.ListListener;
import cn.edu.neusoft.zengweidong707.neufood.listener.ZwdListener;

/**
 * Created by Lucio on 2017/11/2.
 */

public interface ZwdIface <T> {
    void login(String u, String p, ZwdListener<T> l);
    void reg(String usename, String userpass, String mobilenum, String address, String comment, ZwdListener<T> l);
    void getShopList(ListListener<T> list);
    void getFoodList(ListListener<T> list, int shop_id);
    void getFoodByID(int id, ZwdListener<T> l);
    void userBuyFood(int userid,int foodid,int num,Double sum,String suggesttime, ZwdListener<T> l);
    void userCollectionShop(int userid,int shopid, ZwdListener<T> l);
    void userCollectionFood(int userid,int foodid, ZwdListener<T> l);
    void shopCollectionFlag(int user_id,int shop_food_id,int flag, ZwdListener<T> l);
    void foodCollectionFlag(int user_id,int shop_food_id,int flag, ZwdListener<T> l);
    void getAllUserCollection(int userid,int flag, ListListener<T> list);
    void getSearch(String search, ListListener<T> list);
    void updateUserInfo(int userid,String username,String userpass,String mobilenum,String address, ZwdListener<T> l);
    void getUserInfo(int userid, ZwdListener<T> l);
    void getOrderByUserid(int userid, ListListener<T> list);
    void getUserComment(int food_id, ListListener<T> list);
    void insertCommentByOrderid(int order_id,String content, ZwdListener<T> l);
    void getCommentByUserid(int userid, ListListener<T> list);
}
